package cn.stylefeng.guns.modular.testCode;

import cn.stylefeng.guns.base.auth.jwt.JwtTokenUtil;
import cn.stylefeng.guns.base.auth.jwt.payload.JwtPayLoad;
import cn.stylefeng.guns.base.auth.model.LoginUser;
import cn.stylefeng.guns.sys.core.auth.AuthServiceImpl;
import cn.stylefeng.guns.sys.core.auth.LoginContextSpringSecutiryImpl;

public class test {
    public static void main(String[] args) {
     /*   LoginContextSpringSecutiryImpl login = new LoginContextSpringSecutiryImpl();
        LoginUser user = login.getUser() ;
        System.out.println(user.getName()) ;*/

       /* AuthServiceImpl s = new AuthServiceImpl();
        System.out.println(s.login("admin","admin") );*/
        test t = new test();
        for(int i=0; i<3; i++){
            System.out.println(t.hashCode());
        }

        //TODO key的作用
      /*  JwtPayLoad payLoad = new JwtPayLoad(new Long(1), "admin", "GUNS_JWT_SECRET_EXPIRE");

        //创建token
        String token = JwtTokenUtil.generateToken(payLoad);
        System.out.println(token);*/
        //创建登录会话
     //   sessionManager.createSession(token, user(username));
    }
}
